<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="rapid" uri="http://www.rapid-framework.org.cn/rapid" %>

    <rapid:override name="title">
        - 添加应用
    </rapid:override>
<rapid:override name="header-style">
    <style>
        /*覆盖 layui*/
        .layui-input-block {
            margin:0px 10px;
        }
        .layui-table {
            margin-top: 0;
        }
        .layui-col-md4 {
            padding:10px;
        }
        .layui-col-md8 {
            padding:10px;
        }
        .layui-btn {
            margin: 2px 0!important;
        }
    </style>
</rapid:override>

<rapid:override name="content">


    <blockquote class="layui-elem-quote">
        <span class="layui-breadcrumb" lay-separator="/">
              <a href="/admin">首页</a>
              <a href="/admin/app">链接列表</a>
              <a><cite>添加应用</cite></a>
        </span>
    </blockquote>
    <div class="layui-row">
        <div class="layui-col-md4">
            <form class="layui-form" method="post" id="myForm" action="/admin/app/insertSubmit">
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <strong>编辑链接</strong>
                    </div>
                    <input type="hidden" name="appId" value="">
                    <div class="layui-input-block">
                        应用列表 <span style="color: #FF5722; ">*</span>
                        <input type="text" name="appName" value="" autocomplete="off" class="layui-input" required>
                    </div>
                    <br>
                    <div class="layui-input-block">
                        参数列表 <span style="color: #FF5722; ">*</span>
                        <input type="text" name="csName" value="" autocomplete="off" class="layui-input" required>
                    </div>
                    <br>
                    <div class="layui-input-block">
                        参数取值
                        <input type="text" name="csValue" value="" autocomplete="off" class="layui-input" required>
                    </div>
                    <br>
                    <div class="layui-input-block">
                        参数使用说明
                        <br>
                    <select name="csBeizhu" class="x-form-set" style="width:220px;" varStatus="status">
                        <option value="">请选择</option>
                        <c:forEach items="${yyList}" var="yylist">
                            <option value="${yylist}" <c:if test="${yylist eq 虎牙}">selected</c:if>>${yylist}</option>
                        </c:forEach>
                    </select>
                    </div>
                    <br>
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="formDemo" type="submit">添加</button>
                    </div>






                    <%--<select id="csBeizhu" name="csBeizhu">--%>
                        <%--<c:forEach items="${yyList}" var="u">--%>
                            <%--<option value="${u}" <c:if test="${ u == "虎牙"}"><c:out value="selected"/></c:if>>--%>
                                    <%--${u.name}--%>
                            <%--</option>--%>
                        <%--</c:forEach>--%>
                    <%--</select>--%>






                </div>
            </form>
            <%--<blockquote class="layui-elem-quote layui-quote-nm">--%>
                <%--温馨提示：--%>
                <%--<ul>--%>
                    <%--<li>URL：如 http://liuyanzhao.com</li>--%>
                    <%--<li>Order：默认是0，Order越大排名越靠前</li>--%>
                <%--</ul>--%>
            <%--</blockquote>--%>
        </div>
        <div class="layui-col-md8">
            <table class="layui-table">
                <colgroup>
                    <col width="50">
                    <col width="100">
                    <col width="150">
                    <col width="150">
                    <col width="200">
                    <col width="150">
                    <col width="150">
                </colgroup>
                <thead>
                <tr>
                    <th>id</th>
                    <th>应用名称</th>
                    <th>参数名称</th>
                    <th>参数取值</th>
                    <th>参数使用说明</th>
                    <th>参数状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${appList}" var="m" varStatus="status">
                    <tr>
                        <td>
                            ${status.count}
                        </td>
                        <td>
                                <%--<a title="${m.appName}" href="/admin/user/edit/${m.appId}" target="_blank">--%>
                                ${m.appName}
                                <%--</a>--%>
                        </td>
                        <td>
                                <%--<a href="/app/${m.appId}" target="_blank">--%>
                                ${m.csName}
                                <%--</a>--%>
                        </td>
                        <td>
                                <%--<a href="/app/${m.appId}" target="_blank">--%>
                                ${m.csValue}
                                <%--</a>--%>
                        </td>
                        <td>
                                <%--<a href="/app/${m.appId}" target="_blank">--%>
                                ${m.csBeizhu}
                                <%--</a>--%>
                        </td>
                        <td>
                                <%--<a href="/app/${a.appId}" target="_blank">--%>
                                ${m.csStatus}
                                <%--</a>--%>
                        </td>
                        <td>
                            <a href="/admin/app/edit/${m.appId}" class="layui-btn layui-btn-mini">编辑</a>
                            <a href="/admin/app/delete/${m.appId}" class="layui-btn layui-btn-danger layui-btn-mini" onclick="return confirmDelete()">删除</a>
                        </td>

                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>






</rapid:override>
<rapid:override name="footer-script">
    <script>

    </script>
</rapid:override>

<%@ include file="../Public/framework.jsp"%>
